package com.web.server;

import com.web.SpringUtils;
import com.web.server.controller.SGWService;
import com.web.server.util.Util;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class AsyncServer {
    private final SGWService sgwService = SpringUtils.getBean(SGWService.class);

    @Async("async")
    public void asyncTask() {
        sgwService.asyncTask();
    }
}
